﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Altairis.Sewen;

public partial class _Default : System.Web.UI.Page {

    protected void Page_Load(object sender, EventArgs e) {

    }

    protected void PageFormView_ItemInserted(object sender, FormViewInsertedEventArgs e) {
        // Get title of newly inserted page
        var newPageSlug = SewenPage.GetSlug(e.Values["Title"] as string);

        // Redirect to the new page
        Response.Redirect("Default.aspx?page=" + newPageSlug);
    }

}